<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">

	<title>Class Slimore\Mvc\Application | Slimore</title>

	<link rel="stylesheet" href="resources/bootstrap.min.css?973e37a8502921d56bc02bb55321f45b072b6f71">
	<link rel="stylesheet" href="resources/style.css?49f43d3208c5d7e33fa16d36107a345bf11cc00d">

</head>

<body>
	<nav id="navigation" class="navbar navbar-default navbar-fixed-top">
		<div class="container-fluid">
			<div class="navbar-header">
				<a href="index.html" class="navbar-brand">Slimore</a>
			</div>
			<div class="collapse navbar-collapse">

                <form id="search" class="navbar-form navbar-left" role="search">
                    <input type="hidden" name="cx" value="">
                    <input type="hidden" name="ie" value="UTF-8">
                    <div class="form-group">
                        <input type="text" name="q" class="search-query form-control" placeholder="Search">
					</div>
				</form>

				<ul class="nav navbar-nav">
					<li>
						<a href="namespace-Slimore.Mvc.html" title="Summary of Slimore\Mvc"><span>Namespace</span></a>
					</li>
					<li class="active">
<span>Class</span>					</li>





				</ul>
			</div>
		</div>
	</nav>

	<div id="left">
	<div id="menu">

		<div id="groups">
				<h3>Namespaces</h3>
			<ul>
					<li>
						<a href="namespace-None.html">
							None						</a>
							</li>
					<li class="active">
						<a href="namespace-Slimore.html">
							Slimore<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-Slimore.Cache.html">
							Cache<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-Slimore.Cache.Exception.html">
							Exception						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-Slimore.Captcha.html">
							Captcha						</a>
							</li>
					<li>
						<a href="namespace-Slimore.Database.html">
							Database						</a>
							</li>
					<li>
						<a href="namespace-Slimore.Debug.html">
							Debug						</a>
							</li>
					<li>
						<a href="namespace-Slimore.Http.html">
							Http						</a>
							</li>
					<li>
						<a href="namespace-Slimore.Image.html">
							Image						</a>
							</li>
					<li>
						<a href="namespace-Slimore.Log.html">
							Log						</a>
							</li>
					<li>
						<a href="namespace-Slimore.Middleware.html">
							Middleware						</a>
							</li>
					<li class="active">
						<a href="namespace-Slimore.Mvc.html">
							Mvc						</a>
							</li>
					<li>
						<a href="namespace-Slimore.Pagination.html">
							Pagination						</a>
							</li>
					<li>
						<a href="namespace-Slimore.Upload.html">
							Upload						</a>
							</li>
								</ul></li>
			</ul>
		</div>


		<div id="elements">
			<h3>Classes</h3>
			<ul>
				<li class="active"><a href="class-Slimore.Mvc.Application.html">Application</a></li>
				<li><a href="class-Slimore.Mvc.Controller.html">Controller</a></li>
				<li><a href="class-Slimore.Mvc.Model.html">Model</a></li>
				<li><a href="class-Slimore.Mvc.View.html">View</a></li>
			</ul>



			<h3>Exceptions</h3>
			<ul>
				<li><a href="class-Slimore.Mvc.Exception.html">Exception</a></li>
			</ul>


		</div>
	</div>
</div>

<div id="splitter"></div>

<div id="right">
	<div id="rightInner">
<div id="content" class="class">
	<h1>Class Application</h1>


	<div class="description">
	<p>Class Application</p>
	</div>

	<dl class="tree well">
		<dd style="padding-left:0px">
Slim\Slim
			
			
		</dd>
		<dd style="padding-left:30px">
			<img src="resources/inherit.png" alt="Extended by">
<b><span>Slimore\Mvc\Application</span></b>			
			
			
		</dd>
	</dl>








	<div class="alert alert-info">
		
		
		<b>Namespace:</b> <a href="namespace-Slimore.html">Slimore</a>\<a href="namespace-Slimore.Mvc.html">Mvc</a><br>
		<b>Package:</b> Slimore\Mvc<br>

				<b>Author:</b>
				Pandao<br>
			<b>Located at</b> <a href="source-class-Slimore.Mvc.Application.html#22-546" title="Go to source code">Slimore/Mvc/Application.php</a>
		<br>
	</div>



		<div class="panel panel-default">
			<div class="panel-heading"><h2>Methods summary</h2></div>
			<table class="summary table table-bordered table-striped methods" id="methods">
		<tr data-order="__construct" id="___construct">

			<td class="attributes"><code>
				 public 
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#___construct">#</a>
			<code><a href="source-class-Slimore.Mvc.Application.html#110-136" title="Go to source code">__construct</a>( <span>array <var>$settings</var> = <span class="php-keyword1">null</span></span> )</code>

			<div class="description short">
				<p>Constructor</p>
			</div>

			<div class="description detailed hidden">
				<p>Constructor</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$settings</var></dt>
						<dd>null</dd>
					</dl></div>





			</div>
			</div></td>
		</tr>
		<tr data-order="init" id="_init">

			<td class="attributes"><code>
				 public 
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_init">#</a>
			<code><a href="source-class-Slimore.Mvc.Application.html#139-151" title="Go to source code">init</a>( )</code>

			<div class="description short">
				<p>Application Initialization method</p>
			</div>

			<div class="description detailed hidden">
				<p>Application Initialization method</p>







			</div>
			</div></td>
		</tr>
		<tr data-order="run" id="_run">

			<td class="attributes"><code>
				 public 
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_run">#</a>
			<code><a href="source-class-Slimore.Mvc.Application.html#154-204" title="Go to source code">run</a>( )</code>

			<div class="description short">
				<p>Override Slim run method</p>
			</div>

			<div class="description detailed hidden">
				<p>Override Slim run method</p>







			</div>
			</div></td>
		</tr>
		<tr data-order="errorsHandle" id="_errorsHandle">

			<td class="attributes"><code>
				 protected 
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_errorsHandle">#</a>
			<code><a href="source-class-Slimore.Mvc.Application.html#207-292" title="Go to source code">errorsHandle</a>( )</code>

			<div class="description short">
				<p>Errors / Exceptions handle</p>
			</div>

			<div class="description detailed hidden">
				<p>Errors / Exceptions handle</p>







			</div>
			</div></td>
		</tr>
		<tr data-order="dbConnection" id="_dbConnection">

			<td class="attributes"><code>
				 public 
				mixed
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_dbConnection">#</a>
			<code><a href="source-class-Slimore.Mvc.Application.html#295-320" title="Go to source code">dbConnection</a>( <span>array <var>$configs</var> = <span class="php-keyword1">null</span></span>, <span>string <var>$name</var> = <span class="php-quote">'default'</span></span>, <span>boolean <var>$enableQueryLog</var> = <span class="php-keyword1">true</span></span> )</code>

			<div class="description short">
				<p>Configure the database and boot Eloquent</p>
			</div>

			<div class="description detailed hidden">
				<p>Configure the database and boot Eloquent</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$configs</var></dt>
						<dd>null</dd>
						<dt><var>$name</var></dt>
						<dd>default</dd>
						<dt><var>$enableQueryLog</var></dt>
						<dd>true</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						mixed
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="moduleNamespace" id="_moduleNamespace">

			<td class="attributes"><code>
				 public 
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_moduleNamespace">#</a>
			<code><a href="source-class-Slimore.Mvc.Application.html#323-336" title="Go to source code">moduleNamespace</a>( <span>string <var>$namespace</var></span>, <span>callable <var>$callback</var></span> )</code>

			<div class="description short">
				<p>Modules namespace route handle method</p>
			</div>

			<div class="description detailed hidden">
				<p>Modules namespace route handle method</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$namespace</var></dt>
						<dd></dd>
						<dt><var>$callback</var></dt>
						<dd></dd>
					</dl></div>





			</div>
			</div></td>
		</tr>
		<tr data-order="controller" id="_controller">

			<td class="attributes"><code>
				 public 
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_controller">#</a>
			<code><a href="source-class-Slimore.Mvc.Application.html#339-352" title="Go to source code">controller</a>( <span>string <var>$controller</var></span>, <span>callable <var>$callback</var></span>, <span>string <var>$namespace</var> = <span class="php-quote">''</span></span> )</code>

			<div class="description short">
				<p>Route controller handle</p>
			</div>

			<div class="description detailed hidden">
				<p>Route controller handle</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$controller</var></dt>
						<dd></dd>
						<dt><var>$callback</var></dt>
						<dd></dd>
						<dt><var>$namespace</var></dt>
						<dd></dd>
					</dl></div>





			</div>
			</div></td>
		</tr>
		<tr data-order="autoRoute" id="_autoRoute">

			<td class="attributes"><code>
				 public 
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_autoRoute">#</a>
			<code><a href="source-class-Slimore.Mvc.Application.html#355-441" title="Go to source code">autoRoute</a>( <span>boolean <var>$stop</var> = <span class="php-keyword1">false</span></span> )</code>

			<div class="description short">
				<p>Auto router method</p>
			</div>

			<div class="description detailed hidden">
				<p>Auto router method</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$stop</var></dt>
						<dd>false</dd>
					</dl></div>





			</div>
			</div></td>
		</tr>
		<tr data-order="__autoload" id="___autoload">

			<td class="attributes"><code>
				 protected 
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#___autoload">#</a>
			<code><a href="source-class-Slimore.Mvc.Application.html#444-504" title="Go to source code">__autoload</a>( <span>string <var>$className</var></span> )</code>

			<div class="description short">
				<p>Autoload callable method</p>
			</div>

			<div class="description detailed hidden">
				<p>Autoload callable method</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$className</var></dt>
						<dd></dd>
					</dl></div>





			</div>
			</div></td>
		</tr>
		<tr data-order="autoloads" id="_autoloads">

			<td class="attributes"><code>
				 protected 
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_autoloads">#</a>
			<code><a href="source-class-Slimore.Mvc.Application.html#507-515" title="Go to source code">autoloads</a>( )</code>

			<div class="description short">
				<p>SPL autoload register method</p>
			</div>

			<div class="description detailed hidden">
				<p>SPL autoload register method</p>







			</div>
			</div></td>
		</tr>
		<tr data-order="timeStart" id="_timeStart">

			<td class="attributes"><code>
				 public 
				number
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_timeStart">#</a>
			<code><a href="source-class-Slimore.Mvc.Application.html#518-529" title="Go to source code">timeStart</a>( )</code>

			<div class="description short">
				<p>Run time start</p>
			</div>

			<div class="description detailed hidden">
				<p>Run time start</p>



					<h4>Returns</h4>
					<div class="list">
						number
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="timeEnd" id="_timeEnd">

			<td class="attributes"><code>
				 public 
				number
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_timeEnd">#</a>
			<code><a href="source-class-Slimore.Mvc.Application.html#532-545" title="Go to source code">timeEnd</a>( <span>integer <var>$decimal</var> = <span class="php-num">6</span></span> )</code>

			<div class="description short">
				<p>Run end time</p>
			</div>

			<div class="description detailed hidden">
				<p>Run end time</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$decimal</var></dt>
						<dd>6</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						number
					</div>




			</div>
			</div></td>
		</tr>
			</table>
		</div>











		<div class="panel panel-default">
            <div class="panel-heading"><h2>Properties summary</h2></div>
			<table class="summary table table-bordered table-striped properties" id="properties">
		<tr data-order="version" id="$version">
			<td class="attributes"><code>
				public  
				string
			</code></td>

			<td class="name">
					<a href="source-class-Slimore.Mvc.Application.html#30-33" title="Go to source code"><var>$version</var></a>

				<div class="description short">
					
				</div>

				<div class="description detailed hidden">
					

				</div>
			</td>
			<td class="value">
				<div>
					<a href="#$version" class="anchor">#</a>
					<code><span class="php-quote">'0.1.0'</span></code>
				</div>
			</td>
		</tr>
		<tr data-order="defaults" id="$defaults">
			<td class="attributes"><code>
				protected  
				array
			</code></td>

			<td class="name">
					<a href="source-class-Slimore.Mvc.Application.html#35-61" title="Go to source code"><var>$defaults</var></a>

				<div class="description short">
					<p>$defaults</p>
				</div>

				<div class="description detailed hidden">
					<p>$defaults</p>

				</div>
			</td>
			<td class="value">
				<div>
					<a href="#$defaults" class="anchor">#</a>
					<code>[
                        <span class="php-quote">'path'</span>               =&gt; <span class="php-quote">''</span>,
                        <span class="php-quote">'baseURL'</span>            =&gt; <span class="php-quote">''</span>,
                        <span class="php-quote">'timezone'</span>           =&gt; <span class="php-quote">'Asia/Shanghai'</span>,
                        <span class="php-quote">'templates.path'</span>     =&gt; <span class="php-quote">'../app/views'</span>,
                        <span class="php-quote">'cookies.encrypt'</span>    =&gt; <span class="php-keyword1">true</span>,
                        <span class="php-quote">'cookies.secret_key'</span> =&gt; <span class="php-quote">'vadsfas'</span>,
                        <span class="php-quote">'modules'</span>            =&gt; [],
                        <span class="php-quote">'defaultModule'</span>      =&gt; <span class="php-quote">''</span>,
                        <span class="php-quote">'disabledModules'</span>    =&gt; <span class="php-quote">''</span>,
                        <span class="php-quote">'template.suffix'</span>    =&gt; <span class="php-quote">'.php'</span>,
                        <span class="php-quote">'x-framework-header'</span> =&gt; <span class="php-keyword1">true</span>,
                        <span class="php-quote">'mvcDirs'</span>            =&gt; [
                            <span class="php-quote">'controller'</span>     =&gt; <span class="php-quote">'controllers'</span>,
                            <span class="php-quote">'model'</span>          =&gt; <span class="php-quote">'models'</span>,
                            <span class="php-quote">'view'</span>           =&gt; <span class="php-quote">'views'</span>
                        ],
                        <span class="php-quote">'autoloads'</span>          =&gt; [],
                        <span class="php-quote">'defaultAutoloads'</span>   =&gt; [
                            <span class="php-quote">'../app/controllers'</span>,
                            <span class="php-quote">'../app/models'</span>,
                        ],
                        <span class="php-quote">'db'</span>                 =&gt; []
                    ]</code>
				</div>
			</td>
		</tr>
		<tr data-order="path" id="$path">
			<td class="attributes"><code>
				public  
				string
			</code></td>

			<td class="name">
					<a href="source-class-Slimore.Mvc.Application.html#69-72" title="Go to source code"><var>$path</var></a>

				<div class="description short">
					
				</div>

				<div class="description detailed hidden">
					

				</div>
			</td>
			<td class="value">
				<div>
					<a href="#$path" class="anchor">#</a>
					<code></code>
				</div>
			</td>
		</tr>
		<tr data-order="baseURL" id="$baseURL">
			<td class="attributes"><code>
				public  
				string
			</code></td>

			<td class="name">
					<a href="source-class-Slimore.Mvc.Application.html#74-77" title="Go to source code"><var>$baseURL</var></a>

				<div class="description short">
					
				</div>

				<div class="description detailed hidden">
					

				</div>
			</td>
			<td class="value">
				<div>
					<a href="#$baseURL" class="anchor">#</a>
					<code></code>
				</div>
			</td>
		</tr>
		<tr data-order="db" id="$db">
			<td class="attributes"><code>
				public  
				mixed
			</code></td>

			<td class="name">
					<a href="source-class-Slimore.Mvc.Application.html#79-82" title="Go to source code"><var>$db</var></a>

				<div class="description short">
					
				</div>

				<div class="description detailed hidden">
					

				</div>
			</td>
			<td class="value">
				<div>
					<a href="#$db" class="anchor">#</a>
					<code></code>
				</div>
			</td>
		</tr>
		<tr data-order="startTime" id="$startTime">
			<td class="attributes"><code>
				public  
				number
			</code></td>

			<td class="name">
					<a href="source-class-Slimore.Mvc.Application.html#84-87" title="Go to source code"><var>$startTime</var></a>

				<div class="description short">
					
				</div>

				<div class="description detailed hidden">
					

				</div>
			</td>
			<td class="value">
				<div>
					<a href="#$startTime" class="anchor">#</a>
					<code></code>
				</div>
			</td>
		</tr>
		<tr data-order="moduleName" id="$moduleName">
			<td class="attributes"><code>
				public  
				string
			</code></td>

			<td class="name">
					<a href="source-class-Slimore.Mvc.Application.html#89-92" title="Go to source code"><var>$moduleName</var></a>

				<div class="description short">
					
				</div>

				<div class="description detailed hidden">
					

				</div>
			</td>
			<td class="value">
				<div>
					<a href="#$moduleName" class="anchor">#</a>
					<code><span class="php-quote">''</span></code>
				</div>
			</td>
		</tr>
		<tr data-order="controllerName" id="$controllerName">
			<td class="attributes"><code>
				public  
				string
			</code></td>

			<td class="name">
					<a href="source-class-Slimore.Mvc.Application.html#94-97" title="Go to source code"><var>$controllerName</var></a>

				<div class="description short">
					
				</div>

				<div class="description detailed hidden">
					

				</div>
			</td>
			<td class="value">
				<div>
					<a href="#$controllerName" class="anchor">#</a>
					<code></code>
				</div>
			</td>
		</tr>
		<tr data-order="actionName" id="$actionName">
			<td class="attributes"><code>
				public  
				string
			</code></td>

			<td class="name">
					<a href="source-class-Slimore.Mvc.Application.html#99-102" title="Go to source code"><var>$actionName</var></a>

				<div class="description short">
					
				</div>

				<div class="description detailed hidden">
					

				</div>
			</td>
			<td class="value">
				<div>
					<a href="#$actionName" class="anchor">#</a>
					<code></code>
				</div>
			</td>
		</tr>
		<tr data-order="routeInfo" id="$routeInfo">
			<td class="attributes"><code>
				protected  
				array
			</code></td>

			<td class="name">
					<a href="source-class-Slimore.Mvc.Application.html#104-107" title="Go to source code"><var>$routeInfo</var></a>

				<div class="description short">
					
				</div>

				<div class="description detailed hidden">
					

				</div>
			</td>
			<td class="value">
				<div>
					<a href="#$routeInfo" class="anchor">#</a>
					<code></code>
				</div>
			</td>
		</tr>
			</table>
		</div>






</div>
	</div>

	<div id="footer">
		Slimore API documentation generated by <a href="http://apigen.org">ApiGen</a>
	</div>
</div>
<script src="resources/combined.js"></script>
<script src="elementlist.js"></script>
</body>
</html>
